#include <iostream>
#include <cstdio>
using namespace std;

double f( double x,int n )
{
	if(n == 1)
	{
		return (x / (1 + x ));
	}
	else
	return  ( x / ( n +f( x , n - 1)));
	
	
}
int main()
{
	double x;
	int n;
	cin >> x >> n;
	double r = f(x,n);
	printf("%.2lf\n",r);
	
	
	return 0;
 } 
